package com.yjc.drygoods.product.other;

/**
 * @author yjc
 * @create 2022-08-30 15:42
 */
public class OperationFactory {

    public static Operation produceJiSuan(String c) {
        switch (c) {
            case "+":
                System.out.println("加法运算开始...");
                return new Addition();
            case "-":
                System.out.println("减法运算开始...");
                return new Subduction();
            case "*":
                System.out.println("乘法运算开始...");
                return new Multiplication();
            case "/":
                System.out.println("除法运算开始...");
                return new Division();
        }
        return null;
    }
}
